import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from ui_004 import Ui_MainWindow


class MyMainWindow(QMainWindow, Ui_MainWindow):
    def __init__(self, parent=None):
        super(MyMainWindow, self).__init__(parent)
        self.setupUi(self)

    def on_pushButton_clicked(self):
        print('收益_min:', self.doubleSpinBox_returns_min.text())
        print('收益_max:', self.doubleSpinBox_returns_max.text())
        print('最大回撤_min:', self.doubleSpinBox_drawdown_min.text())
        print('最大回撤_max:', self.doubleSpinBox_maxdrawdown_max.text())
        print('sharp比_min:', self.doubleSpinBox_sharp_min.text())
        print('sharp比_max:', self.doubleSpinBox_sharp_max.text())


if __name__ == '__main__':
    app = QApplication(sys.argv)
    ui = MyMainWindow()
    ui.setWindowTitle("ui_004")
    ui.show()
    sys.exit(app.exec_())
